package com.shangjinrong.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shangjinrong.domain.Borrower;
import com.shangjinrong.domain.vo.BorrowerApprovalVO;
import com.shangjinrong.domain.vo.BorrowerDetailVO;
import com.shangjinrong.domain.vo.BorrowerVO;

public interface BorrowerService extends IService<Borrower> {

    void saveBorrowerByUserId(BorrowerVO borrowerVO, Long userId);

    /**
     * 根据borrowerId 返回borrowerDetail对象
     *
     * @param id 借款人id
     * @return BorrowerDetailVo对象
     */
    BorrowerDetailVO getBorrowerDetailVoById(Long id);

    void approval(BorrowerApprovalVO borrowerApprovalVO);

    Integer getStatus(Long userId);

    void paging(Page page,String keyword);

}
